package com.xzj;

import com.xzj.spring.SpringApplication;
import com.xzj.spring.config.MyConfig;

/**
 * @ProjectName: SpringDemo
 * @Package: com.xzj
 * @ClassName: SpringDemoBootstrap
 * @Author: xzj
 * @Description:
 * @Date: 2022/7/8 8:45
 * @Version: 1.0
 */
public class SpringDemoBootstrap {

    public static void main(String[] args) {
        SpringApplication.run(MyConfig.class, args);

//        System.out.println("//================");
//        AServer aServer = (AServer) application.getBean("123");
//        aServer.saveLog();
//        AServer aServer2 =  application.getBean(AServer.class);
//        BServer bServer = (BServer) application.getBean("456");
//        BServer bServer2 =  application.getBean(BServer.class);
//        System.out.println(aServer);
//        System.out.println(aServer2);
//        System.out.println(bServer);
//        System.out.println(bServer2);
//
//        aServer.print();
//        aServer2.print();
//        bServer.print();
//        bServer2.print();
//
//        System.out.println("==================");
//        DServer dServer =  application.getBean(DServer.class);
//        dServer.print();

//        BServer aServer1 = (BServer)application.getBean("456");
////        AServer aServer2 = (AServer)application.getBean("aServer2");
//        System.out.println(aServer1);
//
//        System.out.println(new HandlerMapping());

//        System.out.println(aServer2);
    }

}
